package com.shoddon.cloud.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
	
	@Autowired
    ComputeClient computeClient;
	
    @RequestMapping(value = "/compute", method = RequestMethod.GET)
    public Integer compute() {
        return computeClient.compute(10, 20);
    }
}
